.class Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;
.super Ljava/lang/Object;
.source "SimpleFileDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->chooseChooser(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "SimpleFileDialogOnClickListener"
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;)V
    .locals 0

    .line 105
    iput-object p1, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5

    .line 108
    iget-object v0, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$000(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;)Ljava/lang/String;

    move-result-object v0

    .line 109
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    check-cast p1, Landroid/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/AlertDialog;->getListView()Landroid/widget/ListView;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object p1

    invoke-interface {p1, p2}, Landroid/widget/ListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 110
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p2

    add-int/lit8 p2, p2, -0x1

    invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C

    move-result p2

    const/4 v1, 0x0

    const/16 v2, 0x2f

    if-ne p2, v2, :cond_0

    .line 111
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p2

    add-int/lit8 p2, p2, -0x1

    invoke-virtual {p1, v1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    :cond_0
    const-string p2, ".."

    .line 114
    invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    const-string v2, "/"

    if-eqz p2, :cond_1

    .line 116
    iget-object p2, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {p2}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$000(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {v4}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$000(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v3, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-static {p2, v1}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$002(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;Ljava/lang/String;)Ljava/lang/String;

    goto :goto_0

    .line 119
    :cond_1
    iget-object p2, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {v3}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$000(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {p2, v1}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$002(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;Ljava/lang/String;)Ljava/lang/String;

    .line 121
    :goto_0
    iget-object p2, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    iget-object v1, p2, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->defaultFileName:Ljava/lang/String;

    invoke-static {p2, v1}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$102(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;Ljava/lang/String;)Ljava/lang/String;

    .line 123
    new-instance p2, Ljava/io/File;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {v1}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$000(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {p2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/io/File;->isFile()Z

    move-result p2

    if-eqz p2, :cond_2

    .line 125
    iget-object p2, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {p2, v0}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$002(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;Ljava/lang/String;)Ljava/lang/String;

    .line 126
    iget-object p2, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {p2, p1}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$102(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;Ljava/lang/String;)Ljava/lang/String;

    .line 129
    :cond_2
    iget-object p1, p0, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog$1SimpleFileDialogOnClickListener;->this$0:Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;->access$200(Llt/noframe/gpsfarmguide/utils/SimpleFileDialog;)V

    return-void
.end method
